package cn.zt.ztzx.controller;

import cn.zt.utils.Result;
import cn.zt.ztzx.domain.dto.DeviceTypeDto;
import cn.zt.ztzx.service.DeviceTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("admin/deviceType")
public class DeviceTypeController {
    @Autowired
    private DeviceTypeService deviceTypeService;
//    查询所有
    @GetMapping("deviceTypeListPage")
    public Result deviceTypeListPage(DeviceTypeDto deviceTypeDto){
        return deviceTypeService.deviceTypeListPage(deviceTypeDto);
    }
}
